//: Playground - noun: a place where people can play

import UIKit
import PlaygroundSupport

extension UIColor {
    var pureImage: UIImage {
        let size = CGSize(width: 1, height: 1)
        let rect = CGRect(origin: .zero, size: size)
        UIGraphicsBeginImageContextWithOptions(size, false, 0)
        setFill()
        UIRectFill(rect)
        return UIGraphicsGetImageFromCurrentImageContext()!
    }
    
    func pureImage(radius: Float) {
        
    }
}


let view = UIView()
view.frame = CGRect.init(origin: .zero, size: CGSize.init(width: 100, height: 100))
view.backgroundColor = UIColor.yellow
PlaygroundPage.current.liveView = view
